package com.lf.web.service.system.config;

import com.lf.data.Cluster;
import com.lf.data.Key;
import com.lf.data.KeyType;
import com.lf.data.ValueType;

import java.util.Map;

public class Config extends Cluster {

    @Key(keyType = KeyType.MapKey, valueType = ValueType.String, check = "^\\w+$", nullable = false)
    public static final String NAME = "name";

    @Key(keyType = KeyType.MapKey, valueType = ValueType.String, check = "", nullable = false)
    public static final String DESCRIPT = "descript";

    //@Key(keyType = KeyType.MapKey,valueType = ValueType.String,check = "",nullable = false)
    public static final String OPTION = "option";

    @Key(keyType = KeyType.MapKey, valueType = ValueType.String, check = "\\w+", nullable = false)
    public static final String PROPERTY = "property";

    @Key(keyType = KeyType.MapKey, valueType = ValueType.String, check = "", nullable = false)
    public static final String VALUE = "value";

    public Config() {
        super();
    }

    public Config(Map<String, Object> map) {
        super(map);
    }

}
